stdvq: error.o initialize.o splitcdwds.o lloyd.o perturb_MSE.o fullsearch_MSE.o cenupdt_MSE.o cenrplc_MSE.o writecdbk_MSE.o stdvq.c stdvq.h stdvq.defs
#
	cc -o stdvq -g -DCDBKADD=0 -DCDBKUPADD=0 stdvq.c initialize.o \
	splitcdwds.o lloyd.o perturb_MSE.o fullsearch_MSE.o cenupdt_MSE.o \
	cenrplc_MSE.o error.o writecdbk_MSE.o -lm
	
stdvq_MSEshort: error.o initialize.o splitcdwds.o lloyd.o perturb_MSE.o fullsearch_MSE.o cenupdt_MSE.o cenrplc_MSE.o writecdbk_MSE.o stdvq_mse.c stdvq.h stdvq.defs
#
	cc -o stdvq_MSEshort -g -DCDBKADD=0 -DCDBKUPADD=0 stdvq_mse.c initialize.o \
	splitcdwds.o lloyd.o perturb_MSE.o fullsearch_MSE.o cenupdt_MSE.o \
	cenrplc_MSE.o error.o writecdbk_MSE.o -lm
	
stdvqfpa: initialize_fpa.o error_fpa.o splitcdwds_fpa.o lloyd_fpa.o perturb_MSE_fpa.o fullsearch_MSE_fpa.o cenupdt_MSE_fpa.o cenrplc_MSE_fpa.o writecdbk_MSE_fpa.o stdvq.c stdvq.h stdvq.defs
#
	cc -o stdvqfpa -ffpa -DCDBKADD=0 -DCDBKUPADD=0 stdvq.c \
	initialize_fpa.o splitcdwds_fpa.o lloyd_fpa.o perturb_MSE_fpa.o \
	fullsearch_MSE_fpa.o cenupdt_MSE_fpa.o \
	cenrplc_MSE_fpa.o error_fpa.o writecdbk_MSE_fpa.o -lm
	
stdvq_MSEshortfpa: error_fpa.o initialize_fpa.o splitcdwds_fpa.o lloyd_fpa.o perturb_MSE_fpa.o fullsearch_MSE_fpa.o cenupdt_MSE_fpa.o cenrplc_MSE_fpa.o writecdbk_MSE_fpa.o stdvq_mse.c stdvq.h stdvq.defs
#
	cc -o stdvq_MSEshortfpa -ffpa -DCDBKADD=0 -DCDBKUPADD=0 stdvq_mse.c \
	initialize_fpa.o splitcdwds_fpa.o lloyd_fpa.o perturb_MSE_fpa.o \
	fullsearch_MSE_fpa.o cenupdt_MSE_fpa.o \
	cenrplc_MSE_fpa.o error_fpa.o writecdbk_MSE_fpa.o -lm
	
stdvqmi: error.o initialize.o autometh.o automethx.o splitcdwds.o lloyd.o perturb_MI.o fullsearch_MI.o cenupdt_MI.o cenrplc_MI.o writecdbk_MI.o stdvq.c stdvq.h stdvq.defs
#
	cc -o stdvqmi -g -DCDBKADD=-1 -DCDBKUPADD=-1 stdvq.c initialize.o \
	splitcdwds.o lloyd.o perturb_MI.o fullsearch_MI.o cenupdt_MI.o \
	cenrplc_MI.o autometh.o automethx.o \
	error.o writecdbk_MI.o -lm
	
stdvqmis: error.o initialize.o autometh.o automethx.o splitcdwds.o lloyd.o perturb_MIS.o fullsearch_MIS.o cenupdt_MIS.o cenrplc_MIS.o writecdbk_MIS.o stdvq.c stdvq.h stdvq.defs
#
	cc -o stdvqmis -g -DCDBKADD=1 -DCDBKUPADD=-1 stdvq.c initialize.o \
	splitcdwds.o lloyd.o perturb_MIS.o fullsearch_MIS.o cenupdt_MIS.o \
	cenrplc_MIS.o autometh.o automethx.o \
	error.o writecdbk_MIS.o -lm

stdvqsis: error.o initialize.o autometh.o splitcdwds.o lloyd.o perturb_SIS.o fullsearch_SIS.o cenupdt_MSE.o cenrplc_SIS.o writecdbk_MSE.o stdvq.c stdvq.h stdvq.defs
#
	cc -o stdvqsis -g -DCDBKADD=1 -DCDBKUPADD=0 stdvq.c initialize.o \
	splitcdwds.o lloyd.o perturb_SIS.o fullsearch_SIS.o cenupdt_MSE.o \
	cenrplc_SIS.o autometh.o error.o \
	writecdbk_MSE.o -lm

stdvqe: error.o fullsearch_MSE.o readcdbk_MSE.o writecdwd_MSE.o stdvqe.c stdvq.h stdvq.defs
#
	cc -o stdvqe -g -DCDBKADD=0 stdvqe.c fullsearch_MSE.o \
	readcdbk_MSE.o writecdwd_MSE.o error.o -lm

stdvqe_shortfpa: error_fpa.o fullsearch_MSE_fpa.o readcdbk_MSE_fpa.o writecdwd_MSE_fpa.o stdvqe.c stdvq.h stdvq.defs
#
	cc -o stdvqe_shortfpa -g -DCDBKADD=0 stdvqe.c fullsearch_MSE_fpa.o \
	readcdbk_MSE_fpa.o writecdwd_MSE_fpa.o error_fpa.o -lm

stdvqemi: error.o fullsearch_MI.o readcdbk_MI.o writecdwd_MI.o stdvqe.c stdvq.h stdvq.defs
#
	cc -o stdvqemi -g -DCDBKADD=-1 stdvqe.c fullsearch_MI.o \
	readcdbk_MI.o writecdwd_MI.o error.o -lm

stdvqemis: error.o fullsearch_MIS.o readcdbk_MIS.o writecdwd_MIS.o stdvqe.c stdvq.h stdvq.defs
#
	cc -o stdvqemis -g -DCDBKADD=1 stdvqe.c fullsearch_MIS.o \
	readcdbk_MIS.o writecdwd_MIS.o error.o -lm

stdvqesis: error.o fullsearch_SIS.o readcdbk_MSE.o writecdwd_MSE.o stdvqe.c stdvq.h stdvq.defs
#
	cc -o stdvqesis -g -DCDBKADD=1 stdvqe.c fullsearch_SIS.o \
	readcdbk_MSE.o writecdwd_MSE.o error.o -lm

initialize.o: initialize.c stdvq.h
	cc -g -c initialize.c

initialize_fpa.o: initialize.c stdvq.h
	cc -ffpa -c initialize.c -o initialize_fpa.o
	
splitcdwds.o: splitcdwds.c stdvq.h
	cc -g -c splitcdwds.c
	
splitcdwds_fpa.o: splitcdwds.c stdvq.h
	cc -ffpa -c splitcdwds.c -o splitcdwds_fpa.o
	
lloyd.o: lloyd.c stdvq.h
	cc -g -c lloyd.c
	
lloyd_fpa.o: lloyd.c stdvq.h
	cc -ffpa -c lloyd.c -o lloyd_fpa.o
	
perturb_MSE_fpa.o: perturb_MSE.c stdvq.h
	cc -ffpa -c perturb_MSE.c -o perturb_MSE_fpa.o

perturb_MI.o: perturb_MI.c stdvq.h
	cc -g -c perturb_MI.c

perturb_MIS.o: perturb_MIS.c stdvq.h
	cc -g -c perturb_MIS.c
	
perturb_SIS.o: perturb_SIS.c stdvq.h
	cc -g -c perturb_SIS.c
	
fullsearch_MSE.o: fullsearch_MSE.c stdvq.h
	cc -g -c fullsearch_MSE.c
	
fullsearch_MSE_fpa.o: fullsearch_MSE.c stdvq.h
	cc -ffpa -c fullsearch_MSE.c -o fullsearch_MSE_fpa.o
	
fullsearch_MI.o: fullsearch_MI.c stdvq.h
	cc -g -c fullsearch_MI.c
	
fullsearch_MIS.o: fullsearch_MIS.c stdvq.h
	cc -g -c fullsearch_MIS.c
	
fullsearch_SIS.o: fullsearch_SIS.c stdvq.h
	cc -g -c fullsearch_SIS.c
	
cenupdt_MSE.o: cenupdt_MSE.c stdvq.h
	cc -g -c cenupdt_MSE.c 	

cenupdt_MSE_fpa.o: cenupdt_MSE.c stdvq.h
	cc -ffpa -c cenupdt_MSE.c -o cenupdt_MSE_fpa.o	

cenupdt_MI.o: cenupdt_MI.c stdvq.h
	cc -g -c cenupdt_MI.c 	
	
cenupdt_MIS.o: cenupdt_MIS.c stdvq.h
	cc -g -c cenupdt_MIS.c 	
	
cenrplc_MSE.o: cenrplc_MSE.c stdvq.h
	cc -g -c cenrplc_MSE.c
	
cenrplc_MSE_fpa.o: cenrplc_MSE.c stdvq.h
	cc -ffpa -c cenrplc_MSE.c -o cenrplc_MSE_fpa.o
	
cenrplc_MI.o: cenrplc_MI.c stdvq.h
	cc -g -c cenrplc_MI.c
	
cenrplc_MIS.o: cenrplc_MIS.c stdvq.h
	cc -g -c cenrplc_MIS.c

cenrplc_SIS.o: cenrplc_SIS.c stdvq.h
	cc -g -c cenrplc_SIS.c

writecdbk_MSE.o: writecdbk_MSE.c stdvq.h
	cc -g -c writecdbk_MSE.c

writecdbk_MSE_fpa.o: writecdbk_MSE.c stdvq.h
	cc -ffpa -c writecdbk_MSE.c -o writecdbk_MSE_fpa.o

writecdbk_MI.o: writecdbk_MI.c stdvq.h
	cc -g -c writecdbk_MI.c

writecdbk_MIS.o: writecdbk_MIS.c stdvq.h
	cc -g -c writecdbk_MIS.c

readcdbk_MSE.o: readcdbk_MSE.c stdvq.h
	cc -g -c readcdbk_MSE.c

readcdbk_MSE_fpa.o: readcdbk_MSE_fpa.c stdvq.h
	cc -ffpa -c readcdbk_MSE.c -o readcdbk_MSE_fpa.o

readcdbk_MI.o: readcdbk_MI.c stdvq.h
	cc -g -c readcdbk_MI.c

readcdbk_MIS.o: readcdbk_MIS.c stdvq.h
	cc -g -c readcdbk_MIS.c

writecdwd_MSE.o: writecdwd_MSE.c stdvq.h
	cc -g -c writecdwd_MSE.c

writecdwd_MSE_fpa.o: writecdwd_MSE_fpa.c stdvq.h
	cc -ffpa -c writecdwd_MSE.c -o writecdwd_MSE_fpa.o

writecdwd_MI.o: writecdwd_MI.c stdvq.h
	cc -g -c writecdwd_MI.c

writecdwd_MIS.o: writecdwd_MIS.c stdvq.h
	cc -g -c writecdwd_MIS.c

error.o:  error.c
	cc -g -c error.c

error_fpa.o:  error.c
	cc -g -ffpa -c error.c -o error_fpa.o

autometh.o:  autometh.c
	cc -g -c autometh.c

automethx.o:  automethx.c
	cc -g -c automethx.c

.PHONY: clean

clean:
	-rm *.o core  \
	stdvq stdvq_MSEshort stdvqfpa stdvq_MSEshortfpa stdvqmi stdvqmis stdvqsis \
	stdvqe stdvqe_shortfpa stdvqemi stdvqemis

